export type hobbyType = 0 | 1 | 2 | 3

export type PasswordLogin = {
  phone: string
  password: string
}

export type CodeLogin = {
  phone: string
  code: string
}

export type Register = {
  phone: string
  password: string
  code: string
}

export type Pagenate = {
  pageNum: number
  pageSize: number
}

export type ScenicList = Pagenate & {
  spot?: string
  region?: string
  type?: number
  sort?: string
}

export type UpdateUserInfo = {
  id: number
  avatar: string
  username: string
  area: string
  hobby: string
}

export type PublishDynamic = {
  content: string
  img: string[]
}

export type CommentList = Pagenate & {
  communityId: number
}

export type PostComment = {
  userId: number
  communityId: number
  content: string
}
